package cn.zh.planmanager.domain.plan.convert;

import cn.zh.planmanager.domain.plan.model.entity.PlanSet;
import cn.zh.planmanager.infrastructure.entity.PlanSetEntity;
import org.springframework.beans.BeanUtils;

/**
 * @author zh
 */
public class PlanSetConvert {

    public static PlanSet convertToDo(PlanSetEntity entity){
        PlanSet planSet = new PlanSet();
        BeanUtils.copyProperties(entity, planSet);
        return planSet;
    }
}
